package com.dxy.lc.enums;

public enum UserStatus implements IDictItem {
    OFFLINE(0,"离线"),
    ONLINE(1,"在线"),
    ;

    private int code;
    private String text;

    UserStatus(int code, String text) {
        this.code = code;
        this.text = text;
    }

    @Override
    public String toCode() {
        return code+"";
    }

    @Override
    public String toText() {
        return text;
    }
}
